using PandaWebAPI.Models.ef;

namespace PandaWebAPI.Services
{
    public interface IOrderItemService : IBaseService<OrderItem>
    {
        Task<List<OrderItem>> GetOrderItemsByOrderIdAsync(Guid orderId);
        Task<List<OrderItem>> GetOrderItemsByProductIdAsync(Guid productId);
        Task<OrderItem> UpdateQuantityAsync(Guid orderItemId, int quantity);
        Task<decimal> CalculateItemTotalAsync(Guid orderItemId);
    }
} 